package com.ecoolex.ying.space.entity;

import com.ecoolex.framework.common.annotation.Description;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.springframework.lang.NonNull;

public class GoodsProductExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected Integer offset;

    protected Integer rows;

    public GoodsProductExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public GoodsProductExample orderBy(String orderByClause) {
        this.setOrderByClause(orderByClause);
        return this;
    }

    public GoodsProductExample orderBy(String ... orderByClauses) {
        StringBuffer sb = new StringBuffer();
        for (int i = 0; i < orderByClauses.length; i++) {
            sb.append(orderByClauses[i]);
            if (i < orderByClauses.length - 1) {
                sb.append(" , ");
            }
        }
        this.setOrderByClause(sb.toString());
        return this;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria(this);
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
        rows = null;
        offset = null;
    }

    public static Criteria newAndCreateCriteria() {
        GoodsProductExample example = new GoodsProductExample();
        return example.createCriteria();
    }

    public GoodsProductExample when(boolean condition, IExampleWhen then) {
        if (condition) {
            then.example(this);
        }
        return this;
    }

    public GoodsProductExample when(boolean condition, IExampleWhen then, IExampleWhen otherwise) {
        if (condition) {
            then.example(this);
        } else {
            otherwise.example(this);
        }
        return this;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return this.offset;
    }

    public void setRows(Integer rows) {
        this.rows = rows;
    }

    public Integer getRows() {
        return this.rows;
    }

    public GoodsProductExample limit(Integer rows) {
        this.rows = rows;
        return this;
    }

    public GoodsProductExample limit(Integer offset, Integer rows) {
        this.offset = offset;
        this.rows = rows;
        return this;
    }

    public GoodsProductExample page(Integer page, Integer pageSize) {
        this.offset = page * pageSize;
        this.rows = pageSize;
        return this;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andProductIdIsNull() {
            addCriterion("goodsproduct.ProductId is null");
            return (Criteria) this;
        }

        public Criteria andProductIdIsNotNull() {
            addCriterion("goodsproduct.ProductId is not null");
            return (Criteria) this;
        }

        public Criteria andProductIdEqualTo(Integer value) {
            addCriterion("goodsproduct.ProductId =", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdEqualToColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.ProductId = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andProductIdNotEqualTo(Integer value) {
            addCriterion("goodsproduct.ProductId <>", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdNotEqualToColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.ProductId <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andProductIdGreaterThan(Integer value) {
            addCriterion("goodsproduct.ProductId >", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdGreaterThanColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.ProductId > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andProductIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("goodsproduct.ProductId >=", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdGreaterThanOrEqualToColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.ProductId >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andProductIdLessThan(Integer value) {
            addCriterion("goodsproduct.ProductId <", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdLessThanColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.ProductId < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andProductIdLessThanOrEqualTo(Integer value) {
            addCriterion("goodsproduct.ProductId <=", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdLessThanOrEqualToColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.ProductId <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andProductIdIn(List<Integer> values) {
            addCriterion("goodsproduct.ProductId in", values, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdNotIn(List<Integer> values) {
            addCriterion("goodsproduct.ProductId not in", values, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdBetween(Integer value1, Integer value2) {
            addCriterion("goodsproduct.ProductId between", value1, value2, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdNotBetween(Integer value1, Integer value2) {
            addCriterion("goodsproduct.ProductId not between", value1, value2, "productId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdIsNull() {
            addCriterion("goodsproduct.GoodsId is null");
            return (Criteria) this;
        }

        public Criteria andGoodsIdIsNotNull() {
            addCriterion("goodsproduct.GoodsId is not null");
            return (Criteria) this;
        }

        public Criteria andGoodsIdEqualTo(Integer value) {
            addCriterion("goodsproduct.GoodsId =", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdEqualToColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.GoodsId = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andGoodsIdNotEqualTo(Integer value) {
            addCriterion("goodsproduct.GoodsId <>", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdNotEqualToColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.GoodsId <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andGoodsIdGreaterThan(Integer value) {
            addCriterion("goodsproduct.GoodsId >", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdGreaterThanColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.GoodsId > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andGoodsIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("goodsproduct.GoodsId >=", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdGreaterThanOrEqualToColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.GoodsId >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andGoodsIdLessThan(Integer value) {
            addCriterion("goodsproduct.GoodsId <", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdLessThanColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.GoodsId < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andGoodsIdLessThanOrEqualTo(Integer value) {
            addCriterion("goodsproduct.GoodsId <=", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdLessThanOrEqualToColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.GoodsId <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andGoodsIdIn(List<Integer> values) {
            addCriterion("goodsproduct.GoodsId in", values, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdNotIn(List<Integer> values) {
            addCriterion("goodsproduct.GoodsId not in", values, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdBetween(Integer value1, Integer value2) {
            addCriterion("goodsproduct.GoodsId between", value1, value2, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdNotBetween(Integer value1, Integer value2) {
            addCriterion("goodsproduct.GoodsId not between", value1, value2, "goodsId");
            return (Criteria) this;
        }

        public Criteria andSpecIdsIsNull() {
            addCriterion("goodsproduct.SpecIds is null");
            return (Criteria) this;
        }

        public Criteria andSpecIdsIsNotNull() {
            addCriterion("goodsproduct.SpecIds is not null");
            return (Criteria) this;
        }

        public Criteria andSpecIdsEqualTo(String value) {
            addCriterion("goodsproduct.SpecIds =", value, "specIds");
            return (Criteria) this;
        }

        public Criteria andSpecIdsEqualToColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.SpecIds = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSpecIdsNotEqualTo(String value) {
            addCriterion("goodsproduct.SpecIds <>", value, "specIds");
            return (Criteria) this;
        }

        public Criteria andSpecIdsNotEqualToColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.SpecIds <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSpecIdsGreaterThan(String value) {
            addCriterion("goodsproduct.SpecIds >", value, "specIds");
            return (Criteria) this;
        }

        public Criteria andSpecIdsGreaterThanColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.SpecIds > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSpecIdsGreaterThanOrEqualTo(String value) {
            addCriterion("goodsproduct.SpecIds >=", value, "specIds");
            return (Criteria) this;
        }

        public Criteria andSpecIdsGreaterThanOrEqualToColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.SpecIds >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSpecIdsLessThan(String value) {
            addCriterion("goodsproduct.SpecIds <", value, "specIds");
            return (Criteria) this;
        }

        public Criteria andSpecIdsLessThanColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.SpecIds < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSpecIdsLessThanOrEqualTo(String value) {
            addCriterion("goodsproduct.SpecIds <=", value, "specIds");
            return (Criteria) this;
        }

        public Criteria andSpecIdsLessThanOrEqualToColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.SpecIds <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSpecIdsLike(String value) {
            addCriterion("goodsproduct.SpecIds like", value, "specIds");
            return (Criteria) this;
        }

        public Criteria andSpecIdsNotLike(String value) {
            addCriterion("goodsproduct.SpecIds not like", value, "specIds");
            return (Criteria) this;
        }

        public Criteria andSpecIdsIn(List<String> values) {
            addCriterion("goodsproduct.SpecIds in", values, "specIds");
            return (Criteria) this;
        }

        public Criteria andSpecIdsNotIn(List<String> values) {
            addCriterion("goodsproduct.SpecIds not in", values, "specIds");
            return (Criteria) this;
        }

        public Criteria andSpecIdsBetween(String value1, String value2) {
            addCriterion("goodsproduct.SpecIds between", value1, value2, "specIds");
            return (Criteria) this;
        }

        public Criteria andSpecIdsNotBetween(String value1, String value2) {
            addCriterion("goodsproduct.SpecIds not between", value1, value2, "specIds");
            return (Criteria) this;
        }

        public Criteria andSpecNamesIsNull() {
            addCriterion("goodsproduct.SpecNames is null");
            return (Criteria) this;
        }

        public Criteria andSpecNamesIsNotNull() {
            addCriterion("goodsproduct.SpecNames is not null");
            return (Criteria) this;
        }

        public Criteria andSpecNamesEqualTo(String value) {
            addCriterion("goodsproduct.SpecNames =", value, "specNames");
            return (Criteria) this;
        }

        public Criteria andSpecNamesEqualToColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.SpecNames = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSpecNamesNotEqualTo(String value) {
            addCriterion("goodsproduct.SpecNames <>", value, "specNames");
            return (Criteria) this;
        }

        public Criteria andSpecNamesNotEqualToColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.SpecNames <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSpecNamesGreaterThan(String value) {
            addCriterion("goodsproduct.SpecNames >", value, "specNames");
            return (Criteria) this;
        }

        public Criteria andSpecNamesGreaterThanColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.SpecNames > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSpecNamesGreaterThanOrEqualTo(String value) {
            addCriterion("goodsproduct.SpecNames >=", value, "specNames");
            return (Criteria) this;
        }

        public Criteria andSpecNamesGreaterThanOrEqualToColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.SpecNames >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSpecNamesLessThan(String value) {
            addCriterion("goodsproduct.SpecNames <", value, "specNames");
            return (Criteria) this;
        }

        public Criteria andSpecNamesLessThanColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.SpecNames < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSpecNamesLessThanOrEqualTo(String value) {
            addCriterion("goodsproduct.SpecNames <=", value, "specNames");
            return (Criteria) this;
        }

        public Criteria andSpecNamesLessThanOrEqualToColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.SpecNames <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSpecNamesLike(String value) {
            addCriterion("goodsproduct.SpecNames like", value, "specNames");
            return (Criteria) this;
        }

        public Criteria andSpecNamesNotLike(String value) {
            addCriterion("goodsproduct.SpecNames not like", value, "specNames");
            return (Criteria) this;
        }

        public Criteria andSpecNamesIn(List<String> values) {
            addCriterion("goodsproduct.SpecNames in", values, "specNames");
            return (Criteria) this;
        }

        public Criteria andSpecNamesNotIn(List<String> values) {
            addCriterion("goodsproduct.SpecNames not in", values, "specNames");
            return (Criteria) this;
        }

        public Criteria andSpecNamesBetween(String value1, String value2) {
            addCriterion("goodsproduct.SpecNames between", value1, value2, "specNames");
            return (Criteria) this;
        }

        public Criteria andSpecNamesNotBetween(String value1, String value2) {
            addCriterion("goodsproduct.SpecNames not between", value1, value2, "specNames");
            return (Criteria) this;
        }

        public Criteria andSpecSortingIsNull() {
            addCriterion("goodsproduct.SpecSorting is null");
            return (Criteria) this;
        }

        public Criteria andSpecSortingIsNotNull() {
            addCriterion("goodsproduct.SpecSorting is not null");
            return (Criteria) this;
        }

        public Criteria andSpecSortingEqualTo(Integer value) {
            addCriterion("goodsproduct.SpecSorting =", value, "specSorting");
            return (Criteria) this;
        }

        public Criteria andSpecSortingEqualToColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.SpecSorting = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSpecSortingNotEqualTo(Integer value) {
            addCriterion("goodsproduct.SpecSorting <>", value, "specSorting");
            return (Criteria) this;
        }

        public Criteria andSpecSortingNotEqualToColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.SpecSorting <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSpecSortingGreaterThan(Integer value) {
            addCriterion("goodsproduct.SpecSorting >", value, "specSorting");
            return (Criteria) this;
        }

        public Criteria andSpecSortingGreaterThanColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.SpecSorting > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSpecSortingGreaterThanOrEqualTo(Integer value) {
            addCriterion("goodsproduct.SpecSorting >=", value, "specSorting");
            return (Criteria) this;
        }

        public Criteria andSpecSortingGreaterThanOrEqualToColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.SpecSorting >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSpecSortingLessThan(Integer value) {
            addCriterion("goodsproduct.SpecSorting <", value, "specSorting");
            return (Criteria) this;
        }

        public Criteria andSpecSortingLessThanColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.SpecSorting < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSpecSortingLessThanOrEqualTo(Integer value) {
            addCriterion("goodsproduct.SpecSorting <=", value, "specSorting");
            return (Criteria) this;
        }

        public Criteria andSpecSortingLessThanOrEqualToColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.SpecSorting <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSpecSortingIn(List<Integer> values) {
            addCriterion("goodsproduct.SpecSorting in", values, "specSorting");
            return (Criteria) this;
        }

        public Criteria andSpecSortingNotIn(List<Integer> values) {
            addCriterion("goodsproduct.SpecSorting not in", values, "specSorting");
            return (Criteria) this;
        }

        public Criteria andSpecSortingBetween(Integer value1, Integer value2) {
            addCriterion("goodsproduct.SpecSorting between", value1, value2, "specSorting");
            return (Criteria) this;
        }

        public Criteria andSpecSortingNotBetween(Integer value1, Integer value2) {
            addCriterion("goodsproduct.SpecSorting not between", value1, value2, "specSorting");
            return (Criteria) this;
        }

        public Criteria andNameIsNull() {
            addCriterion("goodsproduct.`Name` is null");
            return (Criteria) this;
        }

        public Criteria andNameIsNotNull() {
            addCriterion("goodsproduct.`Name` is not null");
            return (Criteria) this;
        }

        public Criteria andNameEqualTo(String value) {
            addCriterion("goodsproduct.`Name` =", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameEqualToColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.`Name` = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andNameNotEqualTo(String value) {
            addCriterion("goodsproduct.`Name` <>", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotEqualToColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.`Name` <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andNameGreaterThan(String value) {
            addCriterion("goodsproduct.`Name` >", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThanColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.`Name` > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andNameGreaterThanOrEqualTo(String value) {
            addCriterion("goodsproduct.`Name` >=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThanOrEqualToColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.`Name` >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andNameLessThan(String value) {
            addCriterion("goodsproduct.`Name` <", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThanColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.`Name` < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andNameLessThanOrEqualTo(String value) {
            addCriterion("goodsproduct.`Name` <=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThanOrEqualToColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.`Name` <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andNameLike(String value) {
            addCriterion("goodsproduct.`Name` like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotLike(String value) {
            addCriterion("goodsproduct.`Name` not like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameIn(List<String> values) {
            addCriterion("goodsproduct.`Name` in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotIn(List<String> values) {
            addCriterion("goodsproduct.`Name` not in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameBetween(String value1, String value2) {
            addCriterion("goodsproduct.`Name` between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotBetween(String value1, String value2) {
            addCriterion("goodsproduct.`Name` not between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andImageIsNull() {
            addCriterion("goodsproduct.Image is null");
            return (Criteria) this;
        }

        public Criteria andImageIsNotNull() {
            addCriterion("goodsproduct.Image is not null");
            return (Criteria) this;
        }

        public Criteria andImageEqualTo(String value) {
            addCriterion("goodsproduct.Image =", value, "image");
            return (Criteria) this;
        }

        public Criteria andImageEqualToColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.Image = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andImageNotEqualTo(String value) {
            addCriterion("goodsproduct.Image <>", value, "image");
            return (Criteria) this;
        }

        public Criteria andImageNotEqualToColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.Image <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andImageGreaterThan(String value) {
            addCriterion("goodsproduct.Image >", value, "image");
            return (Criteria) this;
        }

        public Criteria andImageGreaterThanColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.Image > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andImageGreaterThanOrEqualTo(String value) {
            addCriterion("goodsproduct.Image >=", value, "image");
            return (Criteria) this;
        }

        public Criteria andImageGreaterThanOrEqualToColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.Image >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andImageLessThan(String value) {
            addCriterion("goodsproduct.Image <", value, "image");
            return (Criteria) this;
        }

        public Criteria andImageLessThanColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.Image < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andImageLessThanOrEqualTo(String value) {
            addCriterion("goodsproduct.Image <=", value, "image");
            return (Criteria) this;
        }

        public Criteria andImageLessThanOrEqualToColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.Image <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andImageLike(String value) {
            addCriterion("goodsproduct.Image like", value, "image");
            return (Criteria) this;
        }

        public Criteria andImageNotLike(String value) {
            addCriterion("goodsproduct.Image not like", value, "image");
            return (Criteria) this;
        }

        public Criteria andImageIn(List<String> values) {
            addCriterion("goodsproduct.Image in", values, "image");
            return (Criteria) this;
        }

        public Criteria andImageNotIn(List<String> values) {
            addCriterion("goodsproduct.Image not in", values, "image");
            return (Criteria) this;
        }

        public Criteria andImageBetween(String value1, String value2) {
            addCriterion("goodsproduct.Image between", value1, value2, "image");
            return (Criteria) this;
        }

        public Criteria andImageNotBetween(String value1, String value2) {
            addCriterion("goodsproduct.Image not between", value1, value2, "image");
            return (Criteria) this;
        }

        public Criteria andCodedIsNull() {
            addCriterion("goodsproduct.Coded is null");
            return (Criteria) this;
        }

        public Criteria andCodedIsNotNull() {
            addCriterion("goodsproduct.Coded is not null");
            return (Criteria) this;
        }

        public Criteria andCodedEqualTo(String value) {
            addCriterion("goodsproduct.Coded =", value, "coded");
            return (Criteria) this;
        }

        public Criteria andCodedEqualToColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.Coded = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCodedNotEqualTo(String value) {
            addCriterion("goodsproduct.Coded <>", value, "coded");
            return (Criteria) this;
        }

        public Criteria andCodedNotEqualToColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.Coded <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCodedGreaterThan(String value) {
            addCriterion("goodsproduct.Coded >", value, "coded");
            return (Criteria) this;
        }

        public Criteria andCodedGreaterThanColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.Coded > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCodedGreaterThanOrEqualTo(String value) {
            addCriterion("goodsproduct.Coded >=", value, "coded");
            return (Criteria) this;
        }

        public Criteria andCodedGreaterThanOrEqualToColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.Coded >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCodedLessThan(String value) {
            addCriterion("goodsproduct.Coded <", value, "coded");
            return (Criteria) this;
        }

        public Criteria andCodedLessThanColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.Coded < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCodedLessThanOrEqualTo(String value) {
            addCriterion("goodsproduct.Coded <=", value, "coded");
            return (Criteria) this;
        }

        public Criteria andCodedLessThanOrEqualToColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.Coded <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCodedLike(String value) {
            addCriterion("goodsproduct.Coded like", value, "coded");
            return (Criteria) this;
        }

        public Criteria andCodedNotLike(String value) {
            addCriterion("goodsproduct.Coded not like", value, "coded");
            return (Criteria) this;
        }

        public Criteria andCodedIn(List<String> values) {
            addCriterion("goodsproduct.Coded in", values, "coded");
            return (Criteria) this;
        }

        public Criteria andCodedNotIn(List<String> values) {
            addCriterion("goodsproduct.Coded not in", values, "coded");
            return (Criteria) this;
        }

        public Criteria andCodedBetween(String value1, String value2) {
            addCriterion("goodsproduct.Coded between", value1, value2, "coded");
            return (Criteria) this;
        }

        public Criteria andCodedNotBetween(String value1, String value2) {
            addCriterion("goodsproduct.Coded not between", value1, value2, "coded");
            return (Criteria) this;
        }

        public Criteria andBarCodesIsNull() {
            addCriterion("goodsproduct.BarCodes is null");
            return (Criteria) this;
        }

        public Criteria andBarCodesIsNotNull() {
            addCriterion("goodsproduct.BarCodes is not null");
            return (Criteria) this;
        }

        public Criteria andBarCodesEqualTo(String value) {
            addCriterion("goodsproduct.BarCodes =", value, "barCodes");
            return (Criteria) this;
        }

        public Criteria andBarCodesEqualToColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.BarCodes = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andBarCodesNotEqualTo(String value) {
            addCriterion("goodsproduct.BarCodes <>", value, "barCodes");
            return (Criteria) this;
        }

        public Criteria andBarCodesNotEqualToColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.BarCodes <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andBarCodesGreaterThan(String value) {
            addCriterion("goodsproduct.BarCodes >", value, "barCodes");
            return (Criteria) this;
        }

        public Criteria andBarCodesGreaterThanColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.BarCodes > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andBarCodesGreaterThanOrEqualTo(String value) {
            addCriterion("goodsproduct.BarCodes >=", value, "barCodes");
            return (Criteria) this;
        }

        public Criteria andBarCodesGreaterThanOrEqualToColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.BarCodes >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andBarCodesLessThan(String value) {
            addCriterion("goodsproduct.BarCodes <", value, "barCodes");
            return (Criteria) this;
        }

        public Criteria andBarCodesLessThanColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.BarCodes < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andBarCodesLessThanOrEqualTo(String value) {
            addCriterion("goodsproduct.BarCodes <=", value, "barCodes");
            return (Criteria) this;
        }

        public Criteria andBarCodesLessThanOrEqualToColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.BarCodes <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andBarCodesLike(String value) {
            addCriterion("goodsproduct.BarCodes like", value, "barCodes");
            return (Criteria) this;
        }

        public Criteria andBarCodesNotLike(String value) {
            addCriterion("goodsproduct.BarCodes not like", value, "barCodes");
            return (Criteria) this;
        }

        public Criteria andBarCodesIn(List<String> values) {
            addCriterion("goodsproduct.BarCodes in", values, "barCodes");
            return (Criteria) this;
        }

        public Criteria andBarCodesNotIn(List<String> values) {
            addCriterion("goodsproduct.BarCodes not in", values, "barCodes");
            return (Criteria) this;
        }

        public Criteria andBarCodesBetween(String value1, String value2) {
            addCriterion("goodsproduct.BarCodes between", value1, value2, "barCodes");
            return (Criteria) this;
        }

        public Criteria andBarCodesNotBetween(String value1, String value2) {
            addCriterion("goodsproduct.BarCodes not between", value1, value2, "barCodes");
            return (Criteria) this;
        }

        public Criteria andCounterPriceIsNull() {
            addCriterion("goodsproduct.CounterPrice is null");
            return (Criteria) this;
        }

        public Criteria andCounterPriceIsNotNull() {
            addCriterion("goodsproduct.CounterPrice is not null");
            return (Criteria) this;
        }

        public Criteria andCounterPriceEqualTo(BigDecimal value) {
            addCriterion("goodsproduct.CounterPrice =", value, "counterPrice");
            return (Criteria) this;
        }

        public Criteria andCounterPriceEqualToColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.CounterPrice = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCounterPriceNotEqualTo(BigDecimal value) {
            addCriterion("goodsproduct.CounterPrice <>", value, "counterPrice");
            return (Criteria) this;
        }

        public Criteria andCounterPriceNotEqualToColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.CounterPrice <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCounterPriceGreaterThan(BigDecimal value) {
            addCriterion("goodsproduct.CounterPrice >", value, "counterPrice");
            return (Criteria) this;
        }

        public Criteria andCounterPriceGreaterThanColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.CounterPrice > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCounterPriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("goodsproduct.CounterPrice >=", value, "counterPrice");
            return (Criteria) this;
        }

        public Criteria andCounterPriceGreaterThanOrEqualToColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.CounterPrice >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCounterPriceLessThan(BigDecimal value) {
            addCriterion("goodsproduct.CounterPrice <", value, "counterPrice");
            return (Criteria) this;
        }

        public Criteria andCounterPriceLessThanColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.CounterPrice < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCounterPriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("goodsproduct.CounterPrice <=", value, "counterPrice");
            return (Criteria) this;
        }

        public Criteria andCounterPriceLessThanOrEqualToColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.CounterPrice <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCounterPriceIn(List<BigDecimal> values) {
            addCriterion("goodsproduct.CounterPrice in", values, "counterPrice");
            return (Criteria) this;
        }

        public Criteria andCounterPriceNotIn(List<BigDecimal> values) {
            addCriterion("goodsproduct.CounterPrice not in", values, "counterPrice");
            return (Criteria) this;
        }

        public Criteria andCounterPriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("goodsproduct.CounterPrice between", value1, value2, "counterPrice");
            return (Criteria) this;
        }

        public Criteria andCounterPriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("goodsproduct.CounterPrice not between", value1, value2, "counterPrice");
            return (Criteria) this;
        }

        public Criteria andRetailPriceIsNull() {
            addCriterion("goodsproduct.RetailPrice is null");
            return (Criteria) this;
        }

        public Criteria andRetailPriceIsNotNull() {
            addCriterion("goodsproduct.RetailPrice is not null");
            return (Criteria) this;
        }

        public Criteria andRetailPriceEqualTo(BigDecimal value) {
            addCriterion("goodsproduct.RetailPrice =", value, "retailPrice");
            return (Criteria) this;
        }

        public Criteria andRetailPriceEqualToColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.RetailPrice = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andRetailPriceNotEqualTo(BigDecimal value) {
            addCriterion("goodsproduct.RetailPrice <>", value, "retailPrice");
            return (Criteria) this;
        }

        public Criteria andRetailPriceNotEqualToColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.RetailPrice <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andRetailPriceGreaterThan(BigDecimal value) {
            addCriterion("goodsproduct.RetailPrice >", value, "retailPrice");
            return (Criteria) this;
        }

        public Criteria andRetailPriceGreaterThanColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.RetailPrice > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andRetailPriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("goodsproduct.RetailPrice >=", value, "retailPrice");
            return (Criteria) this;
        }

        public Criteria andRetailPriceGreaterThanOrEqualToColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.RetailPrice >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andRetailPriceLessThan(BigDecimal value) {
            addCriterion("goodsproduct.RetailPrice <", value, "retailPrice");
            return (Criteria) this;
        }

        public Criteria andRetailPriceLessThanColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.RetailPrice < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andRetailPriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("goodsproduct.RetailPrice <=", value, "retailPrice");
            return (Criteria) this;
        }

        public Criteria andRetailPriceLessThanOrEqualToColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.RetailPrice <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andRetailPriceIn(List<BigDecimal> values) {
            addCriterion("goodsproduct.RetailPrice in", values, "retailPrice");
            return (Criteria) this;
        }

        public Criteria andRetailPriceNotIn(List<BigDecimal> values) {
            addCriterion("goodsproduct.RetailPrice not in", values, "retailPrice");
            return (Criteria) this;
        }

        public Criteria andRetailPriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("goodsproduct.RetailPrice between", value1, value2, "retailPrice");
            return (Criteria) this;
        }

        public Criteria andRetailPriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("goodsproduct.RetailPrice not between", value1, value2, "retailPrice");
            return (Criteria) this;
        }

        public Criteria andWeightIsNull() {
            addCriterion("goodsproduct.Weight is null");
            return (Criteria) this;
        }

        public Criteria andWeightIsNotNull() {
            addCriterion("goodsproduct.Weight is not null");
            return (Criteria) this;
        }

        public Criteria andWeightEqualTo(Integer value) {
            addCriterion("goodsproduct.Weight =", value, "weight");
            return (Criteria) this;
        }

        public Criteria andWeightEqualToColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.Weight = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andWeightNotEqualTo(Integer value) {
            addCriterion("goodsproduct.Weight <>", value, "weight");
            return (Criteria) this;
        }

        public Criteria andWeightNotEqualToColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.Weight <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andWeightGreaterThan(Integer value) {
            addCriterion("goodsproduct.Weight >", value, "weight");
            return (Criteria) this;
        }

        public Criteria andWeightGreaterThanColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.Weight > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andWeightGreaterThanOrEqualTo(Integer value) {
            addCriterion("goodsproduct.Weight >=", value, "weight");
            return (Criteria) this;
        }

        public Criteria andWeightGreaterThanOrEqualToColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.Weight >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andWeightLessThan(Integer value) {
            addCriterion("goodsproduct.Weight <", value, "weight");
            return (Criteria) this;
        }

        public Criteria andWeightLessThanColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.Weight < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andWeightLessThanOrEqualTo(Integer value) {
            addCriterion("goodsproduct.Weight <=", value, "weight");
            return (Criteria) this;
        }

        public Criteria andWeightLessThanOrEqualToColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.Weight <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andWeightIn(List<Integer> values) {
            addCriterion("goodsproduct.Weight in", values, "weight");
            return (Criteria) this;
        }

        public Criteria andWeightNotIn(List<Integer> values) {
            addCriterion("goodsproduct.Weight not in", values, "weight");
            return (Criteria) this;
        }

        public Criteria andWeightBetween(Integer value1, Integer value2) {
            addCriterion("goodsproduct.Weight between", value1, value2, "weight");
            return (Criteria) this;
        }

        public Criteria andWeightNotBetween(Integer value1, Integer value2) {
            addCriterion("goodsproduct.Weight not between", value1, value2, "weight");
            return (Criteria) this;
        }

        public Criteria andStockNumberIsNull() {
            addCriterion("goodsproduct.StockNumber is null");
            return (Criteria) this;
        }

        public Criteria andStockNumberIsNotNull() {
            addCriterion("goodsproduct.StockNumber is not null");
            return (Criteria) this;
        }

        public Criteria andStockNumberEqualTo(Integer value) {
            addCriterion("goodsproduct.StockNumber =", value, "stockNumber");
            return (Criteria) this;
        }

        public Criteria andStockNumberEqualToColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.StockNumber = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andStockNumberNotEqualTo(Integer value) {
            addCriterion("goodsproduct.StockNumber <>", value, "stockNumber");
            return (Criteria) this;
        }

        public Criteria andStockNumberNotEqualToColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.StockNumber <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andStockNumberGreaterThan(Integer value) {
            addCriterion("goodsproduct.StockNumber >", value, "stockNumber");
            return (Criteria) this;
        }

        public Criteria andStockNumberGreaterThanColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.StockNumber > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andStockNumberGreaterThanOrEqualTo(Integer value) {
            addCriterion("goodsproduct.StockNumber >=", value, "stockNumber");
            return (Criteria) this;
        }

        public Criteria andStockNumberGreaterThanOrEqualToColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.StockNumber >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andStockNumberLessThan(Integer value) {
            addCriterion("goodsproduct.StockNumber <", value, "stockNumber");
            return (Criteria) this;
        }

        public Criteria andStockNumberLessThanColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.StockNumber < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andStockNumberLessThanOrEqualTo(Integer value) {
            addCriterion("goodsproduct.StockNumber <=", value, "stockNumber");
            return (Criteria) this;
        }

        public Criteria andStockNumberLessThanOrEqualToColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.StockNumber <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andStockNumberIn(List<Integer> values) {
            addCriterion("goodsproduct.StockNumber in", values, "stockNumber");
            return (Criteria) this;
        }

        public Criteria andStockNumberNotIn(List<Integer> values) {
            addCriterion("goodsproduct.StockNumber not in", values, "stockNumber");
            return (Criteria) this;
        }

        public Criteria andStockNumberBetween(Integer value1, Integer value2) {
            addCriterion("goodsproduct.StockNumber between", value1, value2, "stockNumber");
            return (Criteria) this;
        }

        public Criteria andStockNumberNotBetween(Integer value1, Integer value2) {
            addCriterion("goodsproduct.StockNumber not between", value1, value2, "stockNumber");
            return (Criteria) this;
        }

        public Criteria andUsedStockNumberIsNull() {
            addCriterion("goodsproduct.UsedStockNumber is null");
            return (Criteria) this;
        }

        public Criteria andUsedStockNumberIsNotNull() {
            addCriterion("goodsproduct.UsedStockNumber is not null");
            return (Criteria) this;
        }

        public Criteria andUsedStockNumberEqualTo(Integer value) {
            addCriterion("goodsproduct.UsedStockNumber =", value, "usedStockNumber");
            return (Criteria) this;
        }

        public Criteria andUsedStockNumberEqualToColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.UsedStockNumber = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUsedStockNumberNotEqualTo(Integer value) {
            addCriterion("goodsproduct.UsedStockNumber <>", value, "usedStockNumber");
            return (Criteria) this;
        }

        public Criteria andUsedStockNumberNotEqualToColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.UsedStockNumber <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUsedStockNumberGreaterThan(Integer value) {
            addCriterion("goodsproduct.UsedStockNumber >", value, "usedStockNumber");
            return (Criteria) this;
        }

        public Criteria andUsedStockNumberGreaterThanColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.UsedStockNumber > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUsedStockNumberGreaterThanOrEqualTo(Integer value) {
            addCriterion("goodsproduct.UsedStockNumber >=", value, "usedStockNumber");
            return (Criteria) this;
        }

        public Criteria andUsedStockNumberGreaterThanOrEqualToColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.UsedStockNumber >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUsedStockNumberLessThan(Integer value) {
            addCriterion("goodsproduct.UsedStockNumber <", value, "usedStockNumber");
            return (Criteria) this;
        }

        public Criteria andUsedStockNumberLessThanColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.UsedStockNumber < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUsedStockNumberLessThanOrEqualTo(Integer value) {
            addCriterion("goodsproduct.UsedStockNumber <=", value, "usedStockNumber");
            return (Criteria) this;
        }

        public Criteria andUsedStockNumberLessThanOrEqualToColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.UsedStockNumber <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUsedStockNumberIn(List<Integer> values) {
            addCriterion("goodsproduct.UsedStockNumber in", values, "usedStockNumber");
            return (Criteria) this;
        }

        public Criteria andUsedStockNumberNotIn(List<Integer> values) {
            addCriterion("goodsproduct.UsedStockNumber not in", values, "usedStockNumber");
            return (Criteria) this;
        }

        public Criteria andUsedStockNumberBetween(Integer value1, Integer value2) {
            addCriterion("goodsproduct.UsedStockNumber between", value1, value2, "usedStockNumber");
            return (Criteria) this;
        }

        public Criteria andUsedStockNumberNotBetween(Integer value1, Integer value2) {
            addCriterion("goodsproduct.UsedStockNumber not between", value1, value2, "usedStockNumber");
            return (Criteria) this;
        }

        public Criteria andSoldNumberIsNull() {
            addCriterion("goodsproduct.SoldNumber is null");
            return (Criteria) this;
        }

        public Criteria andSoldNumberIsNotNull() {
            addCriterion("goodsproduct.SoldNumber is not null");
            return (Criteria) this;
        }

        public Criteria andSoldNumberEqualTo(Integer value) {
            addCriterion("goodsproduct.SoldNumber =", value, "soldNumber");
            return (Criteria) this;
        }

        public Criteria andSoldNumberEqualToColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.SoldNumber = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSoldNumberNotEqualTo(Integer value) {
            addCriterion("goodsproduct.SoldNumber <>", value, "soldNumber");
            return (Criteria) this;
        }

        public Criteria andSoldNumberNotEqualToColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.SoldNumber <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSoldNumberGreaterThan(Integer value) {
            addCriterion("goodsproduct.SoldNumber >", value, "soldNumber");
            return (Criteria) this;
        }

        public Criteria andSoldNumberGreaterThanColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.SoldNumber > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSoldNumberGreaterThanOrEqualTo(Integer value) {
            addCriterion("goodsproduct.SoldNumber >=", value, "soldNumber");
            return (Criteria) this;
        }

        public Criteria andSoldNumberGreaterThanOrEqualToColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.SoldNumber >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSoldNumberLessThan(Integer value) {
            addCriterion("goodsproduct.SoldNumber <", value, "soldNumber");
            return (Criteria) this;
        }

        public Criteria andSoldNumberLessThanColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.SoldNumber < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSoldNumberLessThanOrEqualTo(Integer value) {
            addCriterion("goodsproduct.SoldNumber <=", value, "soldNumber");
            return (Criteria) this;
        }

        public Criteria andSoldNumberLessThanOrEqualToColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.SoldNumber <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSoldNumberIn(List<Integer> values) {
            addCriterion("goodsproduct.SoldNumber in", values, "soldNumber");
            return (Criteria) this;
        }

        public Criteria andSoldNumberNotIn(List<Integer> values) {
            addCriterion("goodsproduct.SoldNumber not in", values, "soldNumber");
            return (Criteria) this;
        }

        public Criteria andSoldNumberBetween(Integer value1, Integer value2) {
            addCriterion("goodsproduct.SoldNumber between", value1, value2, "soldNumber");
            return (Criteria) this;
        }

        public Criteria andSoldNumberNotBetween(Integer value1, Integer value2) {
            addCriterion("goodsproduct.SoldNumber not between", value1, value2, "soldNumber");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("goodsproduct.`Status` is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("goodsproduct.`Status` is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Integer value) {
            addCriterion("goodsproduct.`Status` =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusEqualToColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.`Status` = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Integer value) {
            addCriterion("goodsproduct.`Status` <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualToColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.`Status` <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Integer value) {
            addCriterion("goodsproduct.`Status` >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.`Status` > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("goodsproduct.`Status` >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualToColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.`Status` >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Integer value) {
            addCriterion("goodsproduct.`Status` <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.`Status` < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Integer value) {
            addCriterion("goodsproduct.`Status` <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualToColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.`Status` <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Integer> values) {
            addCriterion("goodsproduct.`Status` in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Integer> values) {
            addCriterion("goodsproduct.`Status` not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Integer value1, Integer value2) {
            addCriterion("goodsproduct.`Status` between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("goodsproduct.`Status` not between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andDeletedIsNull() {
            addCriterion("goodsproduct.Deleted is null");
            return (Criteria) this;
        }

        public Criteria andDeletedIsNotNull() {
            addCriterion("goodsproduct.Deleted is not null");
            return (Criteria) this;
        }

        public Criteria andDeletedEqualTo(Boolean value) {
            addCriterion("goodsproduct.Deleted =", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedEqualToColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.Deleted = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedNotEqualTo(Boolean value) {
            addCriterion("goodsproduct.Deleted <>", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotEqualToColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.Deleted <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThan(Boolean value) {
            addCriterion("goodsproduct.Deleted >", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThanColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.Deleted > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThanOrEqualTo(Boolean value) {
            addCriterion("goodsproduct.Deleted >=", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThanOrEqualToColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.Deleted >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedLessThan(Boolean value) {
            addCriterion("goodsproduct.Deleted <", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedLessThanColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.Deleted < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedLessThanOrEqualTo(Boolean value) {
            addCriterion("goodsproduct.Deleted <=", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedLessThanOrEqualToColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.Deleted <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedIn(List<Boolean> values) {
            addCriterion("goodsproduct.Deleted in", values, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotIn(List<Boolean> values) {
            addCriterion("goodsproduct.Deleted not in", values, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedBetween(Boolean value1, Boolean value2) {
            addCriterion("goodsproduct.Deleted between", value1, value2, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotBetween(Boolean value1, Boolean value2) {
            addCriterion("goodsproduct.Deleted not between", value1, value2, "deleted");
            return (Criteria) this;
        }

        public Criteria andCreateUserIsNull() {
            addCriterion("goodsproduct.`CreateUser` is null");
            return (Criteria) this;
        }

        public Criteria andCreateUserIsNotNull() {
            addCriterion("goodsproduct.`CreateUser` is not null");
            return (Criteria) this;
        }

        public Criteria andCreateUserEqualTo(String value) {
            addCriterion("goodsproduct.`CreateUser` =", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserEqualToColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.`CreateUser` = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserNotEqualTo(String value) {
            addCriterion("goodsproduct.`CreateUser` <>", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotEqualToColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.`CreateUser` <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThan(String value) {
            addCriterion("goodsproduct.`CreateUser` >", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThanColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.`CreateUser` > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThanOrEqualTo(String value) {
            addCriterion("goodsproduct.`CreateUser` >=", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThanOrEqualToColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.`CreateUser` >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThan(String value) {
            addCriterion("goodsproduct.`CreateUser` <", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThanColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.`CreateUser` < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThanOrEqualTo(String value) {
            addCriterion("goodsproduct.`CreateUser` <=", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThanOrEqualToColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.`CreateUser` <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserLike(String value) {
            addCriterion("goodsproduct.`CreateUser` like", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotLike(String value) {
            addCriterion("goodsproduct.`CreateUser` not like", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserIn(List<String> values) {
            addCriterion("goodsproduct.`CreateUser` in", values, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotIn(List<String> values) {
            addCriterion("goodsproduct.`CreateUser` not in", values, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserBetween(String value1, String value2) {
            addCriterion("goodsproduct.`CreateUser` between", value1, value2, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotBetween(String value1, String value2) {
            addCriterion("goodsproduct.`CreateUser` not between", value1, value2, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("goodsproduct.CreateTime is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("goodsproduct.CreateTime is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("goodsproduct.CreateTime =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualToColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.CreateTime = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("goodsproduct.CreateTime <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualToColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.CreateTime <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("goodsproduct.CreateTime >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.CreateTime > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("goodsproduct.CreateTime >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualToColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.CreateTime >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("goodsproduct.CreateTime <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.CreateTime < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("goodsproduct.CreateTime <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualToColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.CreateTime <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("goodsproduct.CreateTime in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("goodsproduct.CreateTime not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("goodsproduct.CreateTime between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("goodsproduct.CreateTime not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIsNull() {
            addCriterion("goodsproduct.UpdateUser is null");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIsNotNull() {
            addCriterion("goodsproduct.UpdateUser is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateUserEqualTo(String value) {
            addCriterion("goodsproduct.UpdateUser =", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserEqualToColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.UpdateUser = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotEqualTo(String value) {
            addCriterion("goodsproduct.UpdateUser <>", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotEqualToColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.UpdateUser <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThan(String value) {
            addCriterion("goodsproduct.UpdateUser >", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThanColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.UpdateUser > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThanOrEqualTo(String value) {
            addCriterion("goodsproduct.UpdateUser >=", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThanOrEqualToColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.UpdateUser >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThan(String value) {
            addCriterion("goodsproduct.UpdateUser <", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThanColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.UpdateUser < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThanOrEqualTo(String value) {
            addCriterion("goodsproduct.UpdateUser <=", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThanOrEqualToColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.UpdateUser <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserLike(String value) {
            addCriterion("goodsproduct.UpdateUser like", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotLike(String value) {
            addCriterion("goodsproduct.UpdateUser not like", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIn(List<String> values) {
            addCriterion("goodsproduct.UpdateUser in", values, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotIn(List<String> values) {
            addCriterion("goodsproduct.UpdateUser not in", values, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserBetween(String value1, String value2) {
            addCriterion("goodsproduct.UpdateUser between", value1, value2, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotBetween(String value1, String value2) {
            addCriterion("goodsproduct.UpdateUser not between", value1, value2, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("goodsproduct.UpdateTime is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("goodsproduct.UpdateTime is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("goodsproduct.UpdateTime =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualToColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.UpdateTime = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("goodsproduct.UpdateTime <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualToColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.UpdateTime <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("goodsproduct.UpdateTime >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.UpdateTime > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("goodsproduct.UpdateTime >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualToColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.UpdateTime >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("goodsproduct.UpdateTime <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.UpdateTime < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("goodsproduct.UpdateTime <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualToColumn(GoodsProduct.Column column) {
            addCriterion(new StringBuilder("goodsproduct.UpdateTime <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("goodsproduct.UpdateTime in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("goodsproduct.UpdateTime not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("goodsproduct.UpdateTime between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("goodsproduct.UpdateTime not between", value1, value2, "updateTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        private GoodsProductExample example;

        protected Criteria(GoodsProductExample example) {
            super();
            this.example = example;
        }

        public GoodsProductExample example() {
            return this.example;
        }

        @Deprecated
        public Criteria andIf(boolean ifAdd, ICriteriaAdd add) {
            if (ifAdd) {
                add.add(this);
            }
            return this;
        }

        public Criteria when(boolean condition, ICriteriaWhen then) {
            if (condition) {
                then.criteria(this);
            }
            return this;
        }

        public Criteria when(boolean condition, ICriteriaWhen then, ICriteriaWhen otherwise) {
            if (condition) {
                then.criteria(this);
            } else {
                otherwise.criteria(this);
            }
            return this;
        }

        public Criteria andLogicalDeleted(boolean deleted) {
            return deleted ? andDeletedEqualTo(GoodsProduct.Deleted.IS_DELETED.value()) : andDeletedNotEqualTo(GoodsProduct.Deleted.IS_DELETED.value());
        }

        @Deprecated
        public interface ICriteriaAdd {
            Criteria add(Criteria add);
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }

    public interface ICriteriaWhen {
        void criteria(Criteria criteria);
    }

    public interface IExampleWhen {
        void example(com.ecoolex.ying.space.entity.GoodsProductExample example);
    }
}